package com.start.common.entity;

import com.start.common.model.StartBaseTreeModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class StartBaseRole extends StartBaseTreeModel {
    @Schema(name = "角色编码")
    private String roleCode;
    @Schema(name = "角色名称")
    private String roleName;

    @Override
    public String getTreeTitle() {
        return roleName;
    }

    @Override
    public String getTreeValue() {
        return getId();
    }

    @Override
    public String getTreeKey() {
        return getId();
    }
}
